package com.bw.module_inspection.view

import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.bw.lib_base.path.RouterPath
import com.bw.lib_base.view.BaseActivity
import com.bw.module_inspection.R
import com.bw.module_inspection.databinding.ActivityInspectionSearchDetailBinding

@Route(path = RouterPath.PATH_INSPECTION_TASK_DETAIL_ACTIVITY)
class InspectionSearchDetailActivity : BaseActivity<ActivityInspectionSearchDetailBinding>() {
    @Autowired(name = "patrolType")  // 自动注入
    @JvmField   // Kotlin 中需加此注解避免私有化
    var patrolType:String=""
    @Autowired(name = "pointName")  // 自动注入
    @JvmField   // Kotlin 中需加此注解避免私有化
    var pointName:String=""

    override fun initView() {
        mDataBinding.topLayout.iconReturn.setOnClickListener {
            finish()
        }
        mDataBinding.topLayout.tvName.text="巡检任务详情"
        mDataBinding.topLayout.iconMore.visibility=android.view.View.GONE
        ARouter.getInstance().inject(this)
        mDataBinding.tvPointInformation.text=pointName
        mDataBinding.tvName.text=patrolType




    }




    override fun getLayoutId(): Int =R.layout.activity_inspection_search_detail


}